package org.jet.emall.rbac.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-10 10:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="新建用户模型对象", description="包含角色信息")
public class NewAdminUserModel implements Serializable {

    private static final long serialVersionUID=1L;


    @ApiModelProperty(value = "用户名,用于登录用")
    private String username;

    @ApiModelProperty(value = "用户密码，明文")
    private String password;

    @ApiModelProperty(value = "真实姓名")
    private String realname;

    @ApiModelProperty(value = "用户电子邮箱")
    private String email;

    @ApiModelProperty(value = "用户电话")
    private String phone;

    @ApiModelProperty(value = "身份证号码")
    private String idNumber;

    @ApiModelProperty(value = "性别: 1-男; 0-女")
    private Byte gender;

    @ApiModelProperty(value = "1-正常启用; 0-禁用")
    private Byte status;

    @ApiModelProperty(value = "角色id")
    private Integer roleId;

}
